<!DOCTYPE html>
<html lang="ch">

<head>
    <meta charset="UTF-8">
    <title>系统管理首页</title>
    <link rel="stylesheet" href="/bootstrap/css/bootstrap.css">
    <link rel="stylesheet" href="/css/basic.css">
</head>

<body>

    <%- include('./common/header'); %>
        <div class="container-fluid">
            <div class="row">
                <%- include('./common/left-menu'); %>
                    <div class="col-sm-10">
                        <ol class="breadcrumb">
                            <li class="active">商品管理
                            </li>
                            <li class="active">商品列表
                            </li>
                        </ol>
                        <div class="panel panel-default">
                            <div class="panel-heading">
                                搜索
                            </div>
                            <div class="panel-body">
                                <form role="form" class="form-inline">
                                    <div class="form-group">
                                        <label for="name">名称</label>
                                        <input type="text" class="form-control" id="name" placeholder="请输入名称">
                                    </div>

                                    <div class="form-group">
                                        <button type="submit" class="btn btn-default">开始搜索</button>
                                    </div>
                                </form>
                            </div>
                        </div>
                        <!--
                列表展示
            -->
                        <div class="table-responsive">
                            <table class="table table-striped ">
                                <thead>
                                    <tr>
                                        <th>编号</th>
                                        <th>图标</th>
                                        <th>名称</th>
                                        <th>价格</th>
                                        <th>简介</th>

                                        <th class="text-center">操作</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <% for(var i in products) {%>
                                    <tr>
                                        <td><%= Number(i)+1 %></td>
                                        <td>图标</td>
                                        <td><%= products[i].title %></td>
                                        <td><%= products[i].price %></td>
                                        <td><%= products[i].desc %></td>
                                        <td class="text-center">修改 删除</td>
                                    </tr>
                                    <% } %>
                                </tbody>
                            </table>
                        </div>

                    </div>
            </div>
        </div>
        <script src="/js/common.js"></script>
</body>

</html>